<extend name="./Tm/Dt/User_common.html" />

<block name="main">
	<div class="right_main">
		<div class="panel panel-default">
		  	<div class="panel-heading">
		  		<i class="inde_icon icon_jjmx"></i>成为代理</span>
		  	</div>
		  	<div class="panel-body">
    			<div class="row-fluid">
					<div class="span12">
						<div class="tabbable" id="tabs-402357">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#panel-401018" data-toggle="tab">申请记录</a>
								</li>
								<li>
									<a href="#panel-862181" data-toggle="tab">申请成为代理</a>
								</li>
				
							</ul>
							<div class="tab-content">
								<div class="tab-pane " id="panel-862181">
									<div class="h-30"></div>
									<if condition="$user.level egt '2'">您已经是代理，无需再申请！</if>
									<if condition="$user.level lt '2'">
										<form class="form-horizontal pp" action="/user/sj_form" method="post">
											<div class="form-group">
												<label for="inputEmail3" class="col-sm-2 control-label">平台银行账户</label>
												<div class="col-sm-3" style="width: 45%;">
													<!-- <p>{$setting.bank_name}---{$setting.bank_num}---{$setting.bank_username}---{$setting.bank_zhi}</p> -->
													<select name="yh">
				
														<foreach name='adminbank' item='v'>
															<option value="{$v.id}">{$v.bank_name}---{$v.bank_num}---{$v.bank_username}---{$v.bank_zhi}</option>
														</foreach>
				
													</select>
												</div>
											</div>
											<div class="form-group">
												<label for="inputEmail3" class="col-sm-2 control-label">当前等级</label>
												<div class="col-sm-3">
													<p>{$Think.session.level}</p>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label">代理费<span>*</span></label>
												<div class="col-sm-3">
													<input type="text" class="form-control" id="inputEmail3" name="price" value="{$setting.agent_money}" readonly>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label"></label>
												<div class="col-sm-10">
													<p style="color: red;">交代理费{$setting.agent_money}人民币，可成为普通代理，成为代理才有资格拿管理奖！</p>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label">二级密码</label>
												<div class="col-sm-3">
													<input type="password" class="form-control" id="inputPassword3" name="mm2">
												</div>
											</div>
											<div class="form-group">
												<div class="col-sm-offset-2 col-sm-3">
													<button type="submit" class="btn btn-primary">提交</button>
												</div>
											</div>
										</form>
										<div class="form-group">
											<label for="inputEmail3" class="col-sm-2 control-label"></label>
											<div class="col-sm-3" style="width: 45%;">
												<p><span style="color:red;">代理费转帐说明：</span></br>
													<!-- 1、投资金额{$setting.min_money}~{$setting.max_money},且必须是{$setting.bei_money}的倍数；</br> -->
													<!-- 1、每次"充值编号"均不相同,务必将"充值编号"正确复制填写到引号汇款页面的"附言"栏目中； -->
													1、帐号不固定，转帐前请仔细核对该转账帐号；</br>
													2、代理费金额与实际转账金额不符，代理审核将无法通过；</br>
													3、转账后如10分钟未到账，请联系客服，告知您的会员账号和您的代理费金额及你的银行用户姓名。
												</p>
											</div>
										</div>
									</if>
								</div>
								<div class="tab-pane active" id="panel-401018">
									<div class="h-30"></div>
									<table class="table table-bordered">
										<thead>
											<tr style="background:rgb(249,249,249)">
												<th style="text-align:center;">升级前级别</th>
												<th style="text-align:center;">代理费</th>
												<th style="text-align:center;">升级后级别</th>
												<th style="text-align:center;">日期</th>
												<th style="text-align:center;">平台银行卡号</th>
												<th style="text-align:center;">平台开户银行</th>
												<th style="text-align:center;">平台开户姓名</th>
												<th style="text-align:center;">平台支行信息</th>
												<th class="grid-action-td" style="text-align:center;">状态</th>
											</tr>
										</thead>
										<tbody>
											<foreach name='list' item='v'>
												<tr id="b1ed7b71-84bb-41aa-b6e9-a67e01486762">
													<td style="text-align:center;">{$v.sjq}</td>
													<td style="text-align:center;">{$v.price}</td>
													<td style="text-align:center;">{$v.sjh}</td>
													<td style="text-align:center;">{$v.jstime|date="Y/m/d H:i:s",###}</td>
													<td style="text-align:center;">{$v.bank_num}</td>
													<td style="text-align:center;">{$v.bank_name}</td>
													<td style="text-align:center;">{$v.bank_username}</td>
													<td style="text-align:center;">{$v.bank_zhi}</td>
													<td class="grid-action-td" style="text-align:center;">
														<div class="grid-action">{$v.zt}</div>
													</td>
												</tr>
											</foreach>
				
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>